import Vuex from "vuex"
import Vue from "vue"

import userModule from './modules/user';
import cartModule from './modules/cart';
Vue.use(Vuex)

const store = new Vuex.Store({
    // 开启vuex严格模式，只能通过 mutations 修改 state 的值
    strict: true,
    modules: {
        user: userModule,
        cart: cartModule
    }

})

export default store